/*************************************************************************
	> File Name: Book.java
	> Author: blackwall
	> Mail: wangzq@besti.edu.cn
	> Created Time: 2020年09月28日 星期一 10时37分02秒
 ************************************************************************/

public class Book{
    //1.fields
    String name;
    float price;
    String Author;

    //2.operations
    public float setPrice(float price ){
        this.price = price; 
        return this.price;
    }

    public void printBook(){
        System.out.println("BookName:"+ this.name+"\n"+"BookPrice:"+this.price+"\n"+"BookAuthor:"+this.Author);
    }
    //3.constructor
    public Book(){
        this.name = "";
        this.price = 0;
        this.Author = "";
    }
    public Book(String name,float price,String Author){
        this.name = name;
        this.price = price;
        this.Author = Author;
    }
}
